****************************************************************************************
*                          Main replication file for the paper:                        *
*                                                                                      *
*           "Misperceived Social Norms and Willingness to Fight Climate Change"        *
*               Peter Andre, Teodora Boneva, Felix Chopra, Armin Falk                  *
*                         The Review of Economics and Statistics                       *       
*                                     April 2024                                       *
*                                                                                      *
****************************************************************************************

* Install necessary packages (uncomment to install):
* ssc install estout
* ssc install reghdfe
* ssc install coefplot
* ssc install winsor
* ssc install winsor2
* ssc install interflex
* ssc install blindschemes
* ssc install grstyle

* Clear
clear all

* INSTRUCTIONS TO REPLICATOR: Edit line 22 of the "setup.do" file to set the path
*                             to the root of the project on your machine.
do setup

* Cleaning of the raw data. Output is stored in "out/data".
do cleaning/cleaning_wave_1
do cleaning/cleaning_wave_2
do cleaning/merge_waves
do cleaning/cleaning_belief_validation
do cleaning/clean_merged

* Generate tables and figures. Output is stored in "out/tables" and "out/figures".
do tab_A1
do fig_A5
do analysis_wave_1
do analysis_wave_2

****************************************************************************************
*                                   End of file                                        *
****************************************************************************************